import request from '@/utils/request'
// 查询分类列表
export function listSort(query) {
  return request({
    url: 'inv/sort/tree',
    method: 'get',
    params: query
  })
}
// 查询物料基本信息
export function listMaterial(query) {
  return request({
    url: 'inv/items/list',
    method: 'get',
    params: query
  })
}
// 查看物料
export function seeMaterial(uniqueId) {
  return request({
    url: '/inv/items/' + uniqueId,
    method: 'get'
  })
}
// 查询计量单位
export function listUnit(query) {
  return request({
    url: 'inv/unit/list',
    method: 'get',
    params: query
  })
}

// 查询销售订单号
export function listOmCode(query) {
  return request({
    url: '/om/order/supplyTypeList',
    method: 'get',
    params: query
  })
}

// 查询生产计划单号
export function listPrsCode(query) {
  return request({
    url: '/mp/plan/getDetail/group',
    method: 'get',
    params: query
  })
}

